/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(function(){
    
    var SroTimer;
    var SroOffset = 2000;
    var $SroUl = $(".search_EsfQG_1");
    var _children='.user_qrbt_uldivQG';
    var SroLiHeight = $(_children).height();
    var SroCount=$(_children).size();
    if(SroCount>7){
    $SroUl.find(_children).each(function () {
        $(this).hover(function () {
            if (SroTimer) {
                clearInterval(SroTimer);
            }
        }, function () {
            SrollTimer();
        });
    });
    }
    var SrollTimer = function () {
        SroTimer = window.setInterval(SrollMethor, SroOffset);
    };
    var SrollMethor = function () {
        $SroUl.animate({ marginTop: '-' + SroLiHeight }, 1000, null, function () {
            $SroUl.animate({ marginTop: 0 }, 0, null, function () {
                $SroUl.append($SroUl.children(_children).get(0));
            });
        });
    };
    if(SroCount>7){
    SrollTimer();
    };
})

